home *** CD-ROM | disk | FTP | other *** search
-
-
-
- uuuuaaaaddddmmmmiiiinnnn((((2222)))) uuuuaaaaddddmmmmiiiinnnn((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _uuuu_aaaa_dddd_mmmm_iiii_nnnn - administrative control
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_uuuu_aaaa_dddd_mmmm_iiii_nnnn_...._hhhh_>>>>
-
- _iiii_nnnn_tttt _uuuu_aaaa_dddd_mmmm_iiii_nnnn_((((_iiii_nnnn_tttt _cccc_mmmm_dddd_,,,, _iiii_nnnn_tttt _ffff_cccc_nnnn_,,,, _iiii_nnnn_tttt _mmmm_dddd_eeee_pppp_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _uuuu_aaaa_dddd_mmmm_iiii_nnnn provides control for basic administrative functions. This system
- call is tightly coupled to the system administrative procedures and is
- not intended for general use. The argument _m_d_e_p is provided for
- machine-dependent use and is not defined here.
-
- As specified by _c_m_d, the following commands are available:
-
- _AAAA______SSSS_HHHH_UUUU_TTTT_DDDD_OOOO_WWWW_NNNN The system is shut down. All user processes are killed,
- the buffer cache is flushed, and the root file system (and
- no other) is unmounted. The action to be taken after the
- system has been shut down is specified by _f_c_n. The
- functions are generic; the hardware capabilities vary on
- specific machines.
-
- _AAAA_DDDD______HHHH_AAAA_LLLL_TTTT Halt the system.
-
- _AAAA_DDDD______BBBB_OOOO_OOOO_TTTT Reboot the system.
-
- _AAAA_DDDD______IIII_BBBB_OOOO_OOOO_TTTT Interactive reboot; the system goes to
- firmware mode and the user is prompted for
- bootable program name. Not supported; it is
- treated the same as _AAAA_DDDD______HHHH_AAAA_LLLL_TTTT_....
-
- _AAAA_DDDD______PPPP_OOOO_WWWW_EEEE_RRRR_OOOO_FFFF_FFFF Halt the processor and turn off the power with
- _AAAA______RRRR_EEEE_BBBB_OOOO_OOOO_TTTT or _AAAA______SSSS_HHHH_UUUU_TTTT_DDDD_OOOO_WWWW_NNNN. With _AAAA______SSSS_EEEE_TTTT_FFFF_LLLL_AAAA_GGGG,
- simply sets the flag so that a subsequent
- _AAAA______SSSS_HHHH_UUUU_TTTT_DDDD_OOOO_WWWW_NNNN or _AAAA______RRRR_EEEE_BBBB_OOOO_OOOO_TTTT also powers off.
-
- _AAAA______RRRR_EEEE_BBBB_OOOO_OOOO_TTTT The system stops immediately without any further
- processing. The action to be taken next is specified by
- _f_c_n as above.
-
- _AAAA______RRRR_EEEE_MMMM_OOOO_UUUU_NNNN_TTTT The root file system is mounted again after having been
- fixed. This should be used only during the startup
- process.
-
- _AAAA______KKKK_IIII_LLLL_LLLL_AAAA_LLLL_LLLL All processes are killed except those belonging to the
- process group specified by _f_c_n. They are sent the signal
- specified by _m_d_e_p.
-
- _AAAA______SSSS_EEEE_TTTT_FFFF_LLLL_AAAA_GGGG Set a flag to control later actions. Currently
- implemented only for _AAAA_DDDD______PPPP_OOOO_WWWW_EEEE_RRRR_OOOO_FFFF_FFFF.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- uuuuaaaaddddmmmmiiiinnnn((((2222)))) uuuuaaaaddddmmmmiiiinnnn((((2222))))
-
-
-
- _uuuu_aaaa_dddd_mmmm_iiii_nnnn fails if any of the following are true:
-
- _EEEE_PPPP_EEEE_RRRR_MMMM The calling process does not have super-user privilege.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, the value returned depends on _c_m_d as follows:
-
- _AAAA______SSSS_HHHH_UUUU_TTTT_DDDD_OOOO_WWWW_NNNN Never returns.
- _AAAA______RRRR_EEEE_BBBB_OOOO_OOOO_TTTT Never returns.
- _AAAA______RRRR_EEEE_MMMM_OOOO_UUUU_NNNN_TTTT 0
- _AAAA______KKKK_IIII_LLLL_LLLL_AAAA_LLLL_LLLL 0
-
- Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the
- error.
-
- CCCCAAAAPPPPAAAABBBBIIIILLLLIIIITTTTIIIIEEEESSSS
- Require the following in the permitted capability set:
-
- CCCCAAAAPPPP____SSSSHHHHUUUUTTTTDDDDOOOOWWWWNNNN Privilege to shutdown or reboot the system.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- syssgi(2), uadmin(1), capabilities(4).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-